package com.zenchn.entity;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 权限树 对象
 *
 * @author dingxinfa
 * @date 2020-04-16
 **/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AuthTreeVO implements Serializable {

    private static final long serialVersionUID = -8908211513982072829L;
    private String authId;

    private String parentId;

    private String authName;

    private Integer authLevel;

    private Boolean leaf;

    private List<AuthTreeVO> children;


    public AuthTreeVO(){
        this.children=new ArrayList<>();
    }

    public String getAuthId() {
        return authId;
    }

    public void setAuthId(String authId) {
        this.authId = authId;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getAuthName() {
        return authName;
    }

    public void setAuthName(String authName) {
        this.authName = authName;
    }

    public Integer getAuthLevel() {
        return authLevel;
    }

    public void setAuthLevel(Integer authLevel) {
        this.authLevel = authLevel;
    }

    public List<AuthTreeVO> getChildren() {
        return children;
    }

    public void setChildren(List<AuthTreeVO> children) {
        this.children = children;
    }

    public Boolean getLeaf() {
        return leaf;
    }

    public void setLeaf(Boolean leaf) {
        this.leaf = leaf;
    }

    @Override
    public String toString() {
        return "AuthTreeVO{" +
                "authId='" + authId + '\'' +
                ", parentId='" + parentId + '\'' +
                ", authName='" + authName + '\'' +
                ", authLevel=" + authLevel +
                ", leaf=" + leaf +
                ", children=" + children +
                '}';
    }
}
